<!DOCTYPE html>
<html>

<head>
    <title>{$user_nickname} - 我的评论</title>
    <meta name="keywords" content="" />
    <meta name="description" content="">
    <include file="public@head" />
</head>

<body class="body-white" id="top">
    <include file="public@nav" />
    <include file="public@usernav" />
    <div class="container py-3">
        <h6 class="text-right"><i class="fa fa-list-alt"></i> 我的评论</h6>
        <hr>
        <div class="">
            <table class="table table-bordered table-striped table-hover">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>评论内容</th>
                        <th width="150">评论时间</th>
                        <th width="150">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="comments" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.content}</td>
                            <td time="{$vo.create_time}">{:func_friendly_time($vo.create_time)}</td>
                            <td>
                                <php>
                                    $url = json_decode($vo['url'],true);
                                </php>
                                <a href="{:cmf_url($url['action'],$url['param'])}#comment{$vo.id}">查看</a> |
                                <a class="js-ajax-dialog-btn" href="{:url('user/comment/delete',array('id'=>$vo['id']))}" data-msg="您确定要删除评论吗？" data-ok="" data-cacel="取消">删除评论</a>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
            <ul class="pagination">{$page}</ul>
        </div>
    </div>
    <!-- /container -->
    <include file="public@footer" />
    <include file="public@scripts" />
</body>

</html>